#ifndef MBUTTON_H
#define MBUTTON_H
#include <QWidget>
#include <QPushButton>
#include <QPalette>
#include <QColor>
#include "mstyle.h"

enum button_status{
    BUTTON_STATUS_FILE_CHANGED,
    BUTTON_STATUS_FILE_NO_CHANGED,
    BUTTON_STATUS_FILE_CURRENT_SHOW,
    BUTTON_STATUS_FILE_CURRENT_NOTSHOW,
};
class MButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MButton(QPushButton *parent = nullptr);
    void setValue(const QString);
    QString getValue() const;
    QString get_limit_val();
    button_status getButton_status();
    void setButtonFile_status(button_status);
signals:
    void MClicked(QString);
    void MDoubleClicked(QString);
public slots:
    virtual void mousePressEvent(QMouseEvent* event);
    virtual void mouseDoubleClickEvent(QMouseEvent* event);
private:
    QString val;
    button_status status;

};

#endif // MBUTTON_H
